//
//  LSZInvitationTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/6/5.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZInvitationTableViewCell.h"

@implementation LSZInvitationTableViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIImageView * imageViewCover = [[UIImageView alloc]init];
        imageViewCover.image = [UIImage imageNamed:@"我的_邀请弟兄姊妹"];
        [self addSubview:imageViewCover];

        UILabel * labelTitle = [[UILabel alloc]init];
        labelTitle.textColor =  titleColorLSZ;
        labelTitle.text = @"邀请弟兄姊妹";
        [self addSubview:labelTitle];

        UILabel * labelNote = [[UILabel alloc]init];
        labelNote.textColor = redUIColor;
        labelNote.text = @"邀请成功有福音大礼包赠送哦";
        [self addSubview:labelNote];
        if (ScreenWidth == 320) {
            //5
            labelTitle.font = FONT_(18);
            labelNote.font = FONT_(12);
            imageViewCover.frame = CGRectMake(15,12*0.9,30*0.9, 40*0.9);//75.6
            labelTitle.frame = CGRectMake(CGRectGetMaxX(imageViewCover.frame)+9,CGRectGetMinY(imageViewCover.frame),ScreenWidth-CGRectGetMaxX(imageViewCover.frame)-10, 18);
            labelNote.frame = CGRectMake(CGRectGetMaxX(imageViewCover.frame)+9,3+CGRectGetMaxY(labelTitle.frame),ScreenWidth-CGRectGetMaxX(imageViewCover.frame)-10,13);
        }else if(ScreenWidth == 375){
            // 6 7
            labelTitle.font = FONT_(20);
            labelNote.font = FONT_(12.5);
            imageViewCover.frame = CGRectMake(15,12,30, 40);//84
            labelTitle.frame = CGRectMake(CGRectGetMaxX(imageViewCover.frame)+9,CGRectGetMinY(imageViewCover.frame),ScreenWidth-CGRectGetMaxX(imageViewCover.frame)-10, 20);
            labelNote.frame = CGRectMake(CGRectGetMaxX(imageViewCover.frame)+9,3+CGRectGetMaxY(labelTitle.frame),ScreenWidth-CGRectGetMaxX(imageViewCover.frame)-10,15);

        }else {
            //plus
            labelTitle.font = FONT_(22);
            labelNote.font = FONT_(13);
            imageViewCover.frame = CGRectMake(15,12*1.1,30*1.1, 40*1.1);//82.4
            labelTitle.frame = CGRectMake(CGRectGetMaxX(imageViewCover.frame)+9,CGRectGetMinY(imageViewCover.frame),ScreenWidth-CGRectGetMaxX(imageViewCover.frame)-10, 22);
            labelNote.frame = CGRectMake(CGRectGetMaxX(imageViewCover.frame)+9,3+CGRectGetMaxY(labelTitle.frame),ScreenWidth-CGRectGetMaxX(imageViewCover.frame)-10,17);
        }
    }
    return self;
}
@end
